package com.wereload.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.wereload.bean.User;

@Mapper
public interface UserMapper {

	@Select("SELECT * FROM `user` WHERE `name` = #{name}")
	User findByName(@Param("name") String name);

	@Select("select * from `user`")
	List<User> getUserList();
}
